package model

import "time"

type Wallet struct {
	UserID  int64
	Token   string
	Balance float64
}

type OrderType int

const (
	BUY OrderType = iota
	SELL
)

type Order struct {
	ID        int64
	UserID    int64
	Token     string
	Type      OrderType
	Price     float64
	Amount    float64
	Remain    float64
	Status    string // OPEN, FILLED
	CreatedAt time.Time
}

type Trade struct {
	ID          int64
	BuyOrderID  int64
	SellOrderID int64
	Token       string
	Price       float64
	Amount      float64
	Timestamp   int64
}
